package cn.itmantzy.product.service.impl;

import cn.itmantzy.basic.service.impl.BaseServiceImpl;
import cn.itmantzy.product.domain.ProductDetail;
import cn.itmantzy.product.mapper.ProductDetailMapper;
import cn.itmantzy.product.service.IProductDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductDetailServiceImpl extends BaseServiceImpl<ProductDetail> implements IProductDetailService {

    @Autowired
    private ProductDetailMapper productDetailMapper;

    @Override
    public void removeByProductId(Long id) {
        productDetailMapper.deleteByProductId(id);
    }
}
